package com.anjbo.bean.estatedeal;

import java.util.List;

/**
 * Created by Administrator on 2017/3/14.
 */
public class HZDealWrapperDto {

    /*一手房总套数*/
    private Integer oneTotal=0;
    /*惠州一手房数据*/
    private List<HZDealDto> oneData;

    /*二手房总套数*/
    private Integer scndTotal=0;
    /*惠州二手房数据*/
    private List<HZDealDto> scndData;

    public HZDealWrapperDto() {
    }

    public List<HZDealDto> getOneData() {
        return oneData;
    }

    public void setOneData(List<HZDealDto> oneData) {
        if(oneData!=null){
            for(HZDealDto dto:oneData){
                oneTotal+=dto.getTotalNum();
            }
        }
        this.oneData = oneData;
    }

    public List<HZDealDto> getScndData() {
        return scndData;
    }

    public void setScndData(List<HZDealDto> scndData) {
        if(scndData!=null){
            for(HZDealDto dto:scndData){
                scndTotal+=dto.getTotalNum();
            }
        }
        this.scndData = scndData;
    }

    public Integer getOneTotal() {
        return oneTotal;
    }

    public void setOneTotal(Integer oneTotal) {
        this.oneTotal = oneTotal;
    }

    public Integer getScndTotal() {
        return scndTotal;
    }

    public void setScndTotal(Integer scndTotal) {
        this.scndTotal = scndTotal;
    }
}
